//
//  WVVPNTools.h
//  WallVPN
//
//  Created by dd on 2018/3/19.
//  Copyright © 2018年 WallVPN. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <NetworkExtension/NetworkExtension.h>
@interface VPNModel : NSObject


@property (copy,nonatomic) NSString *line;
@property (copy,nonatomic) NSString *serverip;
@property (copy,nonatomic) NSString *psk;
@property (copy,nonatomic) NSString *pwd;
@property (copy,nonatomic) NSString *uname;
@property (copy,nonatomic) NSString *identifierName;

@end


typedef void(^WVVPNToolsConnectStateBlock)(NEVPNStatus status);
@interface WVVPNTools : NSObject

+ (instancetype)sharetoolsWithConfig:(VPNModel *)config StateBlock:(WVVPNToolsConnectStateBlock)stateBlock;

- (void)removeVPNProfile;
- (void)disconnect;

//- (void)connectWithStatus:(WVVPNToolsConnectStateBlock)statusBlock;
- (void)connect;
//- (void)tryConnect;
@property (nonatomic, assign) NEVPNStatus status;

@end

